﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dukou.Search
{
    /// <summary>
    /// 搜索支持
    /// </summary>
    /// <typeparam name="T">实体类型</typeparam>
    public interface ISearchSupport<T>
    {
        /// <summary>
        /// 根据搜索上下文查找内容
        /// </summary>
        /// <param name="context"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        IList<T> SelectBySearch(ISearchContext context, out int totalCount);
    }
}
